<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>博客详情</title>
        <meta name="description" content="Charcoal is a free Bootstrap 4 UI kit build by @attacomsian at Wired Dots." />
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <!--Bootstrap 4-->
        <link rel="stylesheet" href="css/bootstrap.min.css">
        <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
        <link rel="stylesheet" href="editor.md/css/editormd.min.css">
        <script src="editor.md/lib/marked.min.js"></script>
        <script src="editor.md/lib/prettify.min.js"></script>
        <script src="editor.md/editormd.js"></script>
        
    </head>
    <body>

        <nav class="navbar navbar-expand-md navbar-dark fixed-top sticky-navigation">
            <a class="navbar-brand font-weight-bold" href="#">YT摆渡人</a>
            <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#topMenu" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>

            <div class="collapse navbar-collapse" id="topMenu">
                <ul class="navbar-nav ml-auto">
                    <li class="nav-item active">
                        <a class="nav-link page-scroll" href="list.html">博客列表 <span class="sr-only">(current)</span></a>
                    </li>
                    
                    <li class="nav-item active">
                        <a class="nav-link page-scroll" href="login/logout">注销 <span class="sr-only">(current)</span></a>
                    </li>
                </ul>

            </div>
        </nav>

        <!--hero section-->
        <section class="bg-hero">
            <div class="container">
                <div class="row vh-100">
                    <div class="col-sm-12 my-auto text-center">
                        <h1>hello world</h1>
                        <p class="lead text-capitalize my-4">
                            点击查看博客
                        </p>
                        <a href="#container" class="btn btn-outline-light btn-radius btn-lg">查看博客</a>
                    </div>
                </div>
            </div>
        </section>
        <div class="container"></div>



        <!--components-->
        <section class="my-5 pt-5">
            <div class="container">
                    <!-- Cards  -->
                <div class="row mb-4" id="cards">
                    <div class="col-sm-100">
                        <div class="row mb-3">

                            <div class="col-3" style="max-width: 70%">

                                <div class="card text-center">
                                    <div class="card-body">
                                        <h4 class="card-title" id="author">YT摆渡人</h4>
                                        <div><span>博客数量:</span><span id="number"></span></div>
                                    </div>
                                    <img src="img/zys3.jpg" width="100%" alt="Photo of sunset">

                                    <div class="card-body">
                                        <a id="github" href="https://gitee.com/YTbaiduren">博客地址</a>
                                        <p></p>
                                        <a  id="container" href="" class="btn btn-primary">作者博客</a>
                                    </div>

                                </div>
                            </div>
                        </div>

                    </div>
                </div>


                <!-- Jumbotron  -->
                <div class="row mb-5" id="jumbotron">

                    <div class="col-sm-12">

                        <h1 id="title">Jumbotron</h1>
                        <h6 id="date" style="color: green;">xxx</h6>
                        <div class="jumbotron jumbotron-fluid">

                            <div class="container" id="content" style="background-color: transparent;">

                            </div>
                        </div>
                        <div><span>点赞数：</span><span id="likes"></span></div>
                        <!-- Buttons  -->
                        <div class="row mb-5" id="buttons">
                            <div class="col-sm-12">
                                <div class="row mt-4">
                                    <div class="col-sm-6 pb-4" id="theButtons">
                                            <button type="button" class="btn btn-outline-primary" onclick="myLikes()">点赞</button>
                                            <button type="button" class="btn btn-outline-success" onclick="getDiscusses()">评论</button>
                                            <!-- <button type="button" class="btn btn-outline-info" onclick="revise()">修改</button>
                                            <button type="button" class="btn btn-outline-secondary">删除</button> -->
                                    </div>

                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="exampleFormControlTextarea1">发布评论</label>
                            <textarea class="form-control" id="exampleFormControlTextarea1" rows="3"></textarea>
                        </div>
                        <button type="button" class="btn btn-secondary" onclick="sutmitDiscuss()">提交评论</button>
                        <br>
                        <br>
                        <br>
                        
                        <!-- 评论  -->
                        <div class="row mb-1" id="jumbotron">
                            <div class="col-sm-12" id="discusses">
                                
                                <!-- <h1>评论</h1>
                                <div class="container">
                                    <div class="jumbotron">
                                        <hr>
                                        <h5>DT 评论：</h5>
                                        <h6>2020-10-12</h6>
                                        <p>Think BIG with a Bootstrap Jumbotron!</p>
                                        <button type="button" class="btn btn-secondary btn-sm">删除</button>
                                        <hr>

                                        
                                    </div>
                                </div> -->
                            </div>
                        </div>
                        
                    </div>
                </div>

            </div>
        </section>


        <!--footer-->
        <section class="py-5 bg-dark">
            <div class="container">
                <div class="row">
                    <div class="col-md-6 offset-md-3 col-sm-8 offset-sm-2 col-xs-12 text-center">

                        <p class="pt-2 text-muted">
                            &copy; YT摆渡人
                        </p>
                        
                    </div>
                </div>
            </div>
        </section>

        <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js"></script>
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js"></script>
        <script src="js/app.js"></script>
        <script src="js/jsForBlogDetail.js"></script>
    </body>

    
</html>
